Optimal. Leaf size=234 \[ a^2 d x+\frac {1}{2} a^2 e x^2+\frac {1}{3} a (2 b d+a f) x^3+\frac {1}{4} a (2 b e+a g) x^4+\frac {1}{5} \left (b^2 d+2 a b f+a (2 c d+a h)\right ) x^5+\frac {1}{6} \left (b^2 e+2 a c e+2 a b g\right ) x^6+\frac {1}{7} \left (b^2 f+2 a c f+2 b (c d+a h)\right ) x^7+\frac {1}{8} \left (2 b c e+b^2 g+2 a c g\right ) x^8+\frac {1}{9} \left (c^2 d+b^2 h+2 c (b f+a h)\right ) x^9+\frac {1}{10} c (c e+2 b g) x^{10}+\frac {1}{11} c (c f+2 b h) x^{11}+\frac {1}{12} c^2 g x^{12}+\frac {1}{13} c^2 h x^{13} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 234, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.029, Rules used = {1685}
\begin {gather*} a^2 d x+\frac {1}{2} a^2 e x^2+\frac {1}{9} x^9 \left (2 c (a h+b f)+b^2 h+c^2 d\right )+\frac {1}{7} x^7 \left (2 b (a h+c d)+2 a c f+b^2 f\right )+\frac {1}{5} x^5 \left (2 a b f+a (a h+2 c d)+b^2 d\right )+\frac {1}{8} x^8 \left (2 a c g+b^2 g+2 b c e\right )+\frac {1}{6} x^6 \left (2 a b g+2 a c e+b^2 e\right )+\frac {1}{3} a x^3 (a f+2 b d)+\frac {1}{4} a x^4 (a g+2 b e)+\frac {1}{10} c x^{10} (2 b g+c e)+\frac {1}{11} c x^{11} (2 b h+c f)+\frac {1}{12} c^2 g x^{12}+\frac {1}{13} c^2 h x^{13} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1685
Rubi steps
\begin {align*} \int \left (a+b x^2+c x^4\right )^2 \left (d+e x+f x^2+g x^3+h x^4\right ) \, dx &=\int \left (a^2 d+a^2 e x+a (2 b d+a f) x^2+a (2 b e+a g) x^3+\left (b^2 d+2 a b f+a (2 c d+a h)\right ) x^4+\left (b^2 e+2 a c e+2 a b g\right ) x^5+\left (b^2 f+2 a c f+2 b (c d+a h)\right ) x^6+\left (2 b c e+b^2 g+2 a c g\right ) x^7+\left (c^2 d+b^2 h+2 c (b f+a h)\right ) x^8+c (c e+2 b g) x^9+c (c f+2 b h) x^{10}+c^2 g x^{11}+c^2 h x^{12}\right ) \, dx\\ &=a^2 d x+\frac {1}{2} a^2 e x^2+\frac {1}{3} a (2 b d+a f) x^3+\frac {1}{4} a (2 b e+a g) x^4+\frac {1}{5} \left (b^2 d+2 a b f+a (2 c d+a h)\right ) x^5+\frac {1}{6} \left (b^2 e+2 a c e+2 a b g\right ) x^6+\frac {1}{7} \left (b^2 f+2 a c f+2 b (c d+a h)\right ) x^7+\frac {1}{8} \left (2 b c e+b^2 g+2 a c g\right ) x^8+\frac {1}{9} \left (c^2 d+b^2 h+2 c (b f+a h)\right ) x^9+\frac {1}{10} c (c e+2 b g) x^{10}+\frac {1}{11} c (c f+2 b h) x^{11}+\frac {1}{12} c^2 g x^{12}+\frac {1}{13} c^2 h x^{13}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 234, normalized size = 1.00 \begin {gather*} a^2 d x+\frac {1}{2} a^2 e x^2+\frac {1}{3} a (2 b d+a f) x^3+\frac {1}{4} a (2 b e+a g) x^4+\frac {1}{5} \left (b^2 d+2 a c d+2 a b f+a^2 h\right ) x^5+\frac {1}{6} \left (b^2 e+2 a c e+2 a b g\right ) x^6+\frac {1}{7} \left (2 b c d+b^2 f+2 a c f+2 a b h\right ) x^7+\frac {1}{8} \left (2 b c e+b^2 g+2 a c g\right ) x^8+\frac {1}{9} \left (c^2 d+2 b c f+b^2 h+2 a c h\right ) x^9+\frac {1}{10} c (c e+2 b g) x^{10}+\frac {1}{11} c (c f+2 b h) x^{11}+\frac {1}{12} c^2 g x^{12}+\frac {1}{13} c^2 h x^{13} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 219, normalized size = 0.94
method | result | size |
default | \(\frac {c^{2} h \,x^{13}}{13}+\frac {c^{2} g \,x^{12}}{12}+\frac {\left (2 b c h +c^{2} f \right ) x^{11}}{11}+\frac {\left (2 b c g +c^{2} e \right ) x^{10}}{10}+\frac {\left (\left (2 a c +b^{2}\right ) h +2 f b c +c^{2} d \right ) x^{9}}{9}+\frac {\left (2 b c e +g \left (2 a c +b^{2}\right )\right ) x^{8}}{8}+\frac {\left (2 a b h +f \left (2 a c +b^{2}\right )+2 b c d \right ) x^{7}}{7}+\frac {\left (e \left (2 a c +b^{2}\right )+2 a b g \right ) x^{6}}{6}+\frac {\left (a^{2} h +2 a b f +d \left (2 a c +b^{2}\right )\right ) x^{5}}{5}+\frac {\left (g \,a^{2}+2 a b e \right ) x^{4}}{4}+\frac {\left (a^{2} f +2 a b d \right ) x^{3}}{3}+\frac {a^{2} e \,x^{2}}{2}+a^{2} d x\) | \(219\) |
norman | \(\frac {c^{2} h \,x^{13}}{13}+\frac {c^{2} g \,x^{12}}{12}+\left (\frac {2}{11} b c h +\frac {1}{11} c^{2} f \right ) x^{11}+\left (\frac {1}{5} b c g +\frac {1}{10} c^{2} e \right ) x^{10}+\left (\frac {2}{9} a c h +\frac {1}{9} b^{2} h +\frac {2}{9} f b c +\frac {1}{9} c^{2} d \right ) x^{9}+\left (\frac {1}{4} a c g +\frac {1}{8} b^{2} g +\frac {1}{4} b c e \right ) x^{8}+\left (\frac {2}{7} a b h +\frac {2}{7} a c f +\frac {1}{7} b^{2} f +\frac {2}{7} b c d \right ) x^{7}+\left (\frac {1}{3} a b g +\frac {1}{3} a c e +\frac {1}{6} b^{2} e \right ) x^{6}+\left (\frac {1}{5} a^{2} h +\frac {2}{5} a b f +\frac {2}{5} a c d +\frac {1}{5} b^{2} d \right ) x^{5}+\left (\frac {1}{4} g \,a^{2}+\frac {1}{2} a b e \right ) x^{4}+\left (\frac {1}{3} a^{2} f +\frac {2}{3} a b d \right ) x^{3}+\frac {a^{2} e \,x^{2}}{2}+a^{2} d x\) | \(221\) |
gosper | \(\frac {1}{6} x^{6} b^{2} e +\frac {1}{5} x^{5} b^{2} d +\frac {1}{7} x^{7} b^{2} f +\frac {1}{3} x^{3} a^{2} f +\frac {1}{8} x^{8} b^{2} g +\frac {1}{4} x^{4} g \,a^{2}+\frac {1}{5} x^{10} b c g +\frac {1}{4} x^{8} a c g +\frac {2}{5} x^{5} a b f +\frac {2}{7} x^{7} a c f +\frac {1}{3} x^{6} a c e +\frac {2}{9} x^{9} f b c +\frac {1}{5} x^{5} a^{2} h +\frac {1}{9} x^{9} b^{2} h +a^{2} d x +\frac {2}{7} x^{7} a b h +\frac {2}{11} x^{11} b c h +\frac {2}{9} x^{9} a c h +\frac {1}{3} x^{6} a b g +\frac {2}{5} a c d \,x^{5}+\frac {1}{9} c^{2} d \,x^{9}+\frac {2}{3} a b d \,x^{3}+\frac {1}{2} a b e \,x^{4}+\frac {2}{7} b c d \,x^{7}+\frac {1}{4} b c e \,x^{8}+\frac {1}{12} c^{2} g \,x^{12}+\frac {1}{13} c^{2} h \,x^{13}+\frac {1}{10} c^{2} e \,x^{10}+\frac {1}{2} a^{2} e \,x^{2}+\frac {1}{11} c^{2} f \,x^{11}\) | \(254\) |
risch | \(\frac {1}{6} x^{6} b^{2} e +\frac {1}{5} x^{5} b^{2} d +\frac {1}{7} x^{7} b^{2} f +\frac {1}{3} x^{3} a^{2} f +\frac {1}{8} x^{8} b^{2} g +\frac {1}{4} x^{4} g \,a^{2}+\frac {1}{5} x^{10} b c g +\frac {1}{4} x^{8} a c g +\frac {2}{5} x^{5} a b f +\frac {2}{7} x^{7} a c f +\frac {1}{3} x^{6} a c e +\frac {2}{9} x^{9} f b c +\frac {1}{5} x^{5} a^{2} h +\frac {1}{9} x^{9} b^{2} h +a^{2} d x +\frac {2}{7} x^{7} a b h +\frac {2}{11} x^{11} b c h +\frac {2}{9} x^{9} a c h +\frac {1}{3} x^{6} a b g +\frac {2}{5} a c d \,x^{5}+\frac {1}{9} c^{2} d \,x^{9}+\frac {2}{3} a b d \,x^{3}+\frac {1}{2} a b e \,x^{4}+\frac {2}{7} b c d \,x^{7}+\frac {1}{4} b c e \,x^{8}+\frac {1}{12} c^{2} g \,x^{12}+\frac {1}{13} c^{2} h \,x^{13}+\frac {1}{10} c^{2} e \,x^{10}+\frac {1}{2} a^{2} e \,x^{2}+\frac {1}{11} c^{2} f \,x^{11}\) | \(254\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 224, normalized size = 0.96 \begin {gather*} \frac {1}{13} \, c^{2} h x^{13} + \frac {1}{12} \, c^{2} g x^{12} + \frac {1}{11} \, {\left (c^{2} f + 2 \, b c h\right )} x^{11} + \frac {1}{10} \, {\left (2 \, b c g + c^{2} e\right )} x^{10} + \frac {1}{9} \, {\left (c^{2} d + 2 \, b c f + {\left (b^{2} + 2 \, a c\right )} h\right )} x^{9} + \frac {1}{8} \, {\left (2 \, b c e + {\left (b^{2} + 2 \, a c\right )} g\right )} x^{8} + \frac {1}{7} \, {\left (2 \, b c d + 2 \, a b h + {\left (b^{2} + 2 \, a c\right )} f\right )} x^{7} + \frac {1}{6} \, {\left (2 \, a b g + b^{2} e + 2 \, a c e\right )} x^{6} + \frac {1}{5} \, {\left (2 \, a b f + a^{2} h + {\left (b^{2} + 2 \, a c\right )} d\right )} x^{5} + \frac {1}{4} \, {\left (a^{2} g + 2 \, a b e\right )} x^{4} + \frac {1}{2} \, a^{2} x^{2} e + a^{2} d x + \frac {1}{3} \, {\left (2 \, a b d + a^{2} f\right )} x^{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 218, normalized size = 0.93 \begin {gather*} \frac {1}{13} \, c^{2} h x^{13} + \frac {1}{12} \, c^{2} g x^{12} + \frac {1}{11} \, {\left (c^{2} f + 2 \, b c h\right )} x^{11} + \frac {1}{10} \, {\left (c^{2} e + 2 \, b c g\right )} x^{10} + \frac {1}{9} \, {\left (c^{2} d + 2 \, b c f + {\left (b^{2} + 2 \, a c\right )} h\right )} x^{9} + \frac {1}{8} \, {\left (2 \, b c e + {\left (b^{2} + 2 \, a c\right )} g\right )} x^{8} + \frac {1}{7} \, {\left (2 \, b c d + 2 \, a b h + {\left (b^{2} + 2 \, a c\right )} f\right )} x^{7} + \frac {1}{6} \, {\left (2 \, a b g + {\left (b^{2} + 2 \, a c\right )} e\right )} x^{6} + \frac {1}{5} \, {\left (2 \, a b f + a^{2} h + {\left (b^{2} + 2 \, a c\right )} d\right )} x^{5} + \frac {1}{2} \, a^{2} e x^{2} + \frac {1}{4} \, {\left (2 \, a b e + a^{2} g\right )} x^{4} + a^{2} d x + \frac {1}{3} \, {\left (2 \, a b d + a^{2} f\right )} x^{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.02, size = 258, normalized size = 1.10 \begin {gather*} a^{2} d x + \frac {a^{2} e x^{2}}{2} + \frac {c^{2} g x^{12}}{12} + \frac {c^{2} h x^{13}}{13} + x^{11} \cdot \left (\frac {2 b c h}{11} + \frac {c^{2} f}{11}\right ) + x^{10} \left (\frac {b c g}{5} + \frac {c^{2} e}{10}\right ) + x^{9} \cdot \left (\frac {2 a c h}{9} + \frac {b^{2} h}{9} + \frac {2 b c f}{9} + \frac {c^{2} d}{9}\right ) + x^{8} \left (\frac {a c g}{4} + \frac {b^{2} g}{8} + \frac {b c e}{4}\right ) + x^{7} \cdot \left (\frac {2 a b h}{7} + \frac {2 a c f}{7} + \frac {b^{2} f}{7} + \frac {2 b c d}{7}\right ) + x^{6} \left (\frac {a b g}{3} + \frac {a c e}{3} + \frac {b^{2} e}{6}\right ) + x^{5} \left (\frac {a^{2} h}{5} + \frac {2 a b f}{5} + \frac {2 a c d}{5} + \frac {b^{2} d}{5}\right ) + x^{4} \left (\frac {a^{2} g}{4} + \frac {a b e}{2}\right ) + x^{3} \left (\frac {a^{2} f}{3} + \frac {2 a b d}{3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.48, size = 259, normalized size = 1.11 \begin {gather*} \frac {1}{13} \, c^{2} h x^{13} + \frac {1}{12} \, c^{2} g x^{12} + \frac {1}{11} \, c^{2} f x^{11} + \frac {2}{11} \, b c h x^{11} + \frac {1}{5} \, b c g x^{10} + \frac {1}{10} \, c^{2} x^{10} e + \frac {1}{9} \, c^{2} d x^{9} + \frac {2}{9} \, b c f x^{9} + \frac {1}{9} \, b^{2} h x^{9} + \frac {2}{9} \, a c h x^{9} + \frac {1}{8} \, b^{2} g x^{8} + \frac {1}{4} \, a c g x^{8} + \frac {1}{4} \, b c x^{8} e + \frac {2}{7} \, b c d x^{7} + \frac {1}{7} \, b^{2} f x^{7} + \frac {2}{7} \, a c f x^{7} + \frac {2}{7} \, a b h x^{7} + \frac {1}{3} \, a b g x^{6} + \frac {1}{6} \, b^{2} x^{6} e + \frac {1}{3} \, a c x^{6} e + \frac {1}{5} \, b^{2} d x^{5} + \frac {2}{5} \, a c d x^{5} + \frac {2}{5} \, a b f x^{5} + \frac {1}{5} \, a^{2} h x^{5} + \frac {1}{4} \, a^{2} g x^{4} + \frac {1}{2} \, a b x^{4} e + \frac {2}{3} \, a b d x^{3} + \frac {1}{3} \, a^{2} f x^{3} + \frac {1}{2} \, a^{2} x^{2} e + a^{2} d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.11, size = 220, normalized size = 0.94 \begin {gather*} x^6\,\left (\frac {e\,b^2}{6}+\frac {a\,g\,b}{3}+\frac {a\,c\,e}{3}\right )+x^8\,\left (\frac {g\,b^2}{8}+\frac {c\,e\,b}{4}+\frac {a\,c\,g}{4}\right )+x^3\,\left (\frac {f\,a^2}{3}+\frac {2\,b\,d\,a}{3}\right )+x^4\,\left (\frac {g\,a^2}{4}+\frac {b\,e\,a}{2}\right )+x^{10}\,\left (\frac {e\,c^2}{10}+\frac {b\,g\,c}{5}\right )+x^{11}\,\left (\frac {f\,c^2}{11}+\frac {2\,b\,h\,c}{11}\right )+x^5\,\left (\frac {h\,a^2}{5}+\frac {2\,f\,a\,b}{5}+\frac {2\,c\,d\,a}{5}+\frac {d\,b^2}{5}\right )+x^7\,\left (\frac {b^2\,f}{7}+\frac {2\,b\,c\,d}{7}+\frac {2\,a\,c\,f}{7}+\frac {2\,a\,b\,h}{7}\right )+x^9\,\left (\frac {h\,b^2}{9}+\frac {2\,f\,b\,c}{9}+\frac {d\,c^2}{9}+\frac {2\,a\,h\,c}{9}\right )+\frac {a^2\,e\,x^2}{2}+\frac {c^2\,g\,x^{12}}{12}+\frac {c^2\,h\,x^{13}}{13}+a^2\,d\,x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________